﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HFK.DxFluentUIGUITest.Dummy.DataObjects;
using HFK.DxFluentUI.VerticalGrid;

namespace HFK.DxFluentUIGUITest.Dummy
{
  public class VerticalGridFullFeatured : VerticalGridControlBase<SomeData>
  {
    public VerticalGridFullFeatured()
    {
      AddRow("Row1");
      AddRow("Row2", x => x.IntValue);
      AddRow("Row3").Bind(x => x.IntValue);
      AddRow("Row4").Bind(x => x.ChildData.DhcProperty.ThcProperty.StringProperty);
      AddCategory("Category2",
        c =>
        {
          c.AddCategory("Category21",
            c21 =>
            {
              c21.AddRow("Category21Row1").Bind(x => x.Subdata.Submember);
            });
          c.AddRow("Category2Row1");
        });
    }
  }
}
